﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace DongFangGuoKai.WMSPlatform.Core.Migrations
{
    public partial class M14 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterColumn<string>(
                name: "SampleName",
                table: "t_StackingStorageDetail",
                type: "varchar(200)",
                unicode: false,
                maxLength: 200,
                nullable: true,
                comment: "物料名称",
                oldClrType: typeof(string),
                oldType: "varchar(50)",
                oldUnicode: false,
                oldMaxLength: 50,
                oldNullable: true,
                oldComment: "物料名称");

            migrationBuilder.AddColumn<string>(
                name: "MaterialCode",
                table: "t_InventoryDetail",
                type: "varchar(50)",
                unicode: false,
                maxLength: 50,
                nullable: true,
                comment: "物料号");

            migrationBuilder.AddColumn<long>(
                name: "MaterialId",
                table: "t_InventoryDetail",
                type: "bigint",
                nullable: true,
                comment: "物料Id");

            migrationBuilder.AddColumn<string>(
                name: "MaterialName",
                table: "t_InventoryDetail",
                type: "varchar(200)",
                unicode: false,
                maxLength: 200,
                nullable: true,
                comment: "物料名称");
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "MaterialCode",
                table: "t_InventoryDetail");

            migrationBuilder.DropColumn(
                name: "MaterialId",
                table: "t_InventoryDetail");

            migrationBuilder.DropColumn(
                name: "MaterialName",
                table: "t_InventoryDetail");

            migrationBuilder.AlterColumn<string>(
                name: "SampleName",
                table: "t_StackingStorageDetail",
                type: "varchar(50)",
                unicode: false,
                maxLength: 50,
                nullable: true,
                comment: "物料名称",
                oldClrType: typeof(string),
                oldType: "varchar(200)",
                oldUnicode: false,
                oldMaxLength: 200,
                oldNullable: true,
                oldComment: "物料名称");
        }
    }
}
